<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">

    <div class="layui-card-body">

        <div class="layui-form-item">
            <label class="layui-form-label">部门名称</label>
            <div class="layui-input-block">
                <input name="dep_title" required value='{$vo.dep_title|default=""}' placeholder="请输入部门名称" class="layui-input">
            </div>
        </div>
		
		<div class="layui-form-item">
            <label class="layui-form-label">部门标识</label>
            <div class="layui-input-block">
  			{foreach $type_op as $k=>$v}
            <label class="think-radio">
                {if (!isset($vo.dep_type) and $k eq '1') or (isset($vo.dep_type) and $vo.dep_type eq $k)}
                <input type="radio" checked name="dep_type" value="{$k}"> {$v}
                {else}
                <input type="radio" name="dep_type" value="{$k}"> {$v}
                {/if}
            </label>
            {/foreach}               
            </div>
        </div>
            
        <div class="layui-form-item">
            <label class="layui-form-label">部门描述</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea" name="desc">{$vo.desc|default=''}</textarea>
            </div>
        </div>

    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存</button>
        <button class="layui-btn layui-btn-danger" type='button'data-close>取消</button>
    </div>
</form>
